package com.sky.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.List;

/**
 * 签到
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "sign") // 指定集合名称
public class Sign implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    private String id; // MongoDB 默认使用 ObjectId 字符串
    @Field("u_id")
    private Integer uId; // 用户ID
    private Integer continuousDays;//签到持续时间
    private List<String> signedDates;
    private Integer points;
}
